Telegram Group & Telegram Channel
🧑‍💻 Какие методы есть у генератора, но нет у итератора?

1️⃣ send(value)
Позволяет передать значение внутрь генератора. Это значение становится результатом выражения yield в теле генератора.

2️⃣ throw(type, value=None, traceback=None)
Используется для выбрасывания исключения внутри генератора в точке последнего yield. Позволяет обрабатывать ошибки.

3️⃣ close()
Завершает выполнение генератора, вызывая исключение GeneratorExit. Обычно используется для освобождения ресурсов.

#вопросы_с_собеседований



tg-me.com/python_testit/1121
Create:
Last Update:

🧑‍💻 Какие методы есть у генератора, но нет у итератора?

1️⃣ send(value)
Позволяет передать значение внутрь генератора. Это значение становится результатом выражения yield в теле генератора.

2️⃣ throw(type, value=None, traceback=None)
Используется для выбрасывания исключения внутри генератора в точке последнего yield. Позволяет обрабатывать ошибки.

3️⃣ close()
Завершает выполнение генератора, вызывая исключение GeneratorExit. Обычно используется для освобождения ресурсов.

#вопросы_с_собеседований

BY Python tests


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/python_testit/1121

View MORE
Open in Telegram


Python tests Telegram | DID YOU KNOW?

Date: |

Telegram Be The Next Best SPAC

I have no inside knowledge of a potential stock listing of the popular anti-Whatsapp messaging app, Telegram. But I know this much, judging by most people I talk to, especially crypto investors, if Telegram ever went public, people would gobble it up. I know I would. I’m waiting for it. So is Sergei Sergienko, who claims he owns $800,000 of Telegram’s pre-initial coin offering (ICO) tokens. “If Telegram does a SPAC IPO, there would be demand for this issue. It would probably outstrip the interest we saw during the ICO. Why? Because as of right now Telegram looks like a liberal application that can accept anyone - right after WhatsApp and others have turn on the censorship,” he says.

Start with a fresh view of investing strategy. The combination of risks and fads this quarter looks to be topping. That means the future is ready to move in.Likely, there will not be a wholesale shift. Company actions will aim to benefit from economic growth, inflationary pressures and a return of market-determined interest rates. In turn, all of that should drive the stock market and investment returns higher.

Python tests from kr


Telegram Python tests
FROM USA